package com.cskaoyan.servlet;


import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.service.DashboardService;
import com.cskaoyan.service.DashboardServiceImpl;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/admin/dashboard")
public class AdminDashboardServlet extends WdBaseServlet{
    private DashboardService dashboardService=new DashboardServiceImpl();

    public BaseRespVo dashboard(HttpServletRequest request, HttpServletResponse response) throws IOException {
        BaseRespVo data = dashboardService.query();
        return data;
    }
}
